
#pragma once

#include <stdint.h>
#include <vector>
#include <thread>
#include <assert.h>
#include "ThreadPool.h"

namespace FlameEngine
{
	ThreadPool::ThreadPool(int32_t threadCount)
		:m_exist(false),
		m_joiner(m_threads)
	{
		if(threadCount == 0)
			threadCount = std::thread::hardware_concurrency();
	}

	ThreadPool::~ThreadPool()
	{
		m_exist = true;
	}
}